package com.eight.cloud.job.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.eight.cloud.mybatisplus.entity.TenantDataScopeEntity;
import com.eight.cloud.mybatisplus.entity.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 任务执行日志
 *
 * @ClassName: JobExecutionLogEntity
 * @Author: TXC
 * @Date: 2025-02-26 15:00
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_quartz_job_log")
public class JobLogEntity extends TenantDataScopeEntity<JobLogEntity> {

    /**
     * 任务id
     */
    private String jobId;
    /**
     * 任务名称
     */
    private String jobName;

    /**
     * 任务组名
     */
    private String jobGroup;

    /**
     * 调用目标字符串
     */
    private String invokeTarget;

    /**
     * 日志信息
     */
    private String jobMessage;

    /**
     * 异常信息
     */
    private String exceptionInfo;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 停止时间
     */
    private LocalDateTime stopTime;
}
